﻿@model RIS.TMP.WEB.APP.Models.MRestoreToRepair

@{
    ViewBag.Title = "Repair : ออกใบแจ้งซ่อม";
}
@section Home{
<h1 class="page-header">
    Repair
    <p class="lead">(ออกใบแจ้งซ่อม)</p>
</h1>
<form class="form-horizontal well" method="POST">
    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true)
        

        <fieldset>

            <div class="editor-label">
                @Html.LabelFor(model => model.ReCode)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.ReCode)
                @Html.ValidationMessageFor(model => model.ReCode)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.RefCode)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.RefCode)
                @Html.ValidationMessageFor(model => model.RefCode)
            </div>

            <div class="editor-label">
                <label class="control-label" for="select01">เช็คระยะตามแผน</label>
            </div>
            <div class="editor-field">
                @Html.DropDownList("ChpId", ViewBag.ChpId as SelectList, "กรุณาเลือก", new { @style = "width:200px;", @class = "btn btn-default dropdown-toggle", @id = "categorie" })
                @Html.ValidationMessageFor(model => model.ChpId)
            </div>

            <div class="editor-label">
                <label class="control-label" for="select01">ผู้ขายและผู้ให้บริการ</label>
            </div>
            <div class="editor-field">
                @Html.DropDownList("OutId", ViewBag.OutId as SelectList, "กรุณาเลือก", new { @style = "width:200px;", @class = "btn btn-default dropdown-toggle", @id = "categorie" })
                @Html.ValidationMessageFor(model => model.OutId)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.SentTodate)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.SentTodate)
                @Html.ValidationMessageFor(model => model.SentTodate)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.TimeSuc)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.TimeSuc)
                @Html.ValidationMessageFor(model => model.TimeSuc)
            </div>

            <div class="editor-label">
                <label class="control-label" for="select01">สถานะรถยนต์เข้าซ่อม</label>
            </div>
            <div class="editor-field">
                @Html.DropDownList("StatusReId", ViewBag.StatusReId as SelectList, "กรุณาเลือก", new { @style = "width:200px;", @class = "btn btn-default dropdown-toggle", @id = "categorie" })
                @Html.ValidationMessageFor(model => model.StatusReId)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.BuyNo)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.BuyNo)
                @Html.ValidationMessageFor(model => model.BuyNo)
            </div>

            <p>
                <input type="submit" class="btn btn-primary" value="บันทึก" />
                @Html.ActionLink("Back to List", "Index", "MRestoreToAdmin", new object { }, new { @class = "btn btn-default" })
            </p>
        </fieldset>
    }
    </form>
}
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
